package org.meetunexpectedly.entity.setting;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.meetunexpectedly.entity.json.SettingScoreJson;

import java.io.Serializable;

/**
 * @Description: 审核表（系统表）
 * @Author: pupil
 * @Date: 2024/08/19 下午 2:49
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_setting")
public class Setting implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 审核策略
    private String auditPolicy;

    // 热门视频热度限制
    private Double hotLimit;

    // 审核开关
    private Boolean auditOpen;

    // 资源放行ip
    private String allowIp;

    // 回源鉴权开关
    private Boolean auth;

    // 审核状态：通过 人工审核  PASS
    @TableField(exist = false)
    private SettingScoreJson settingScoreJson;
}
